package com.kingint.web.portal.base.controller;


import com.kingint.common.unitedresult.K;
import com.kingint.mbg.bas.entity.BasServiceClass;
import com.kingint.web.portal.base.service.ServiceClassService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/serviceClass")
@Api(value = "ServiceClassController", description = "前端服务内容信息控制层")
@CrossOrigin
public class ServiceClassController {
    @Resource
    private ServiceClassService serviceClassService;


    @ApiOperation(value = "获取服务内容列表信息")
    @GetMapping("/getServiceList")
    public Object getServiceList(){
        List<BasServiceClass> aClass = serviceClassService.getAllServiceClass();
        return K.ok().data(aClass);
    }
}
